<?php
namespace app\admin\controller;
use think\Controller;
class Base extends Controller
{
    public static function jsonDate($code,$mag,$data=[]){
        $arr=[
            'code'=>$code,
            'mag'=>$mag,
            'data'=>$data
        ];
        return json($arr);
    }
}
